﻿@using Controllers
@{
    var func=new MyFunc();
}
<html lang="en-US">
<head>
@Html.Partial("_top")
</head>

	<script type="text/javascript">
		$(function() {
			//banner
			jQuery(".slideBox").slide({
				mainCell: ".bd ul",
				effect: "leftLoop",
				autoPlay: true,
			});
			//新闻中心
			jQuery(".outBox").slide({
				effect: "left"
			});
		})
	</script>
<body>
  
<div id="wlfbox">
@Html.Partial("_header")		  
		<div class="banner">
        @{var banner=func.GetAdList("banner");}
	
				<div id="slideBox" class="slideBox">
						<div class="hd">
							<ul>                
                  @for(var i=0;i<banner.Count;i++){
                    <li></li>			
                  }
							</ul>
						</div>
						<div class="bd">
							<ul>
                  @for(var i=0;i<banner.Count;i++){
                    <li style="background:url('@banner[i].src') no-repeat center top;height:500px;"></li>			
                  }
							</ul>
						</div>
						<!--前/后按钮-->
						<a class="prev" href="javascript:void(0)"></a>
						<a class="next" href="javascript:void(0)"></a>
					</div>
			

		</div>

		<div id="hproduct">
			<div class="box">
				<div class="tit">我们的产品</div>
				<div class="slideTxtBox3">
					<div class="parBd">
						<div class="picScroll-left2">
							<div class="hd cd">
								<a class="sNext"></a>
								<a class="sPrev"></a>
							</div>
							<div class="bd dd">
								<ul class="picList">
                  		@{var niceproducts=func.GetList(0,1,"n");}
                    @for(var i=0;i<niceproducts.Count;i++){	
                      var item=niceproducts[i];
                      var url=string.IsNullOrEmpty(item.url)?"/article/"+item.ID:item.url;
                      var target=string.IsNullOrEmpty(item.url)?"_selft":"_blank";
                      
									<li><a href="@url" title="@item.title" traget="@target">
										<div class="img">
											<img src="@item.pic" alt="@item.title">
										</div>
										<div class="txt2">
											<em>查看更多</em>
										</div>
										<div class="txt3">
											@item.title
										</div>
										</a></li>	
                    }   
				
									</ul>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
		<div id="whfwjg">
		<div class="index_1 box">
			<dl>
				<a href=""><img src="skin/images/wh_1.jpg"></a>
				<dt>@func.GetJxinxi("产品下文字1").title</dt>
				<dd>@Html.Raw(func.GetJxinxi("产品下文字1").content)</dd>
			</dl>
			<dl>
				<a href=""><img src="skin/images/wh_2.jpg"></a>
				<dt>@func.GetJxinxi("产品下文字2").title</dt>
				<dd>@Html.Raw(func.GetJxinxi("产品下文字2").content)</dd>
			</dl>
			<dl>
				<a href=""><img src="skin/images/wh_3.jpg"></a>
				<dt>@func.GetJxinxi("产品下文字3").title</dt>
				<dd>@Html.Raw(func.GetJxinxi("产品下文字3").content)</dd>
			</dl>
		</div>
		</div>

		<div id="hnews">
		<div class="index_4 box">
			<dl class="tit">
				<dt>新闻中心</dt>
				<dd>News Center</dd>
			</dl>
      @{var nclass=func.GetCList(0,2);}
			<div class="outBox">
				<div class="hd">
					<ul>
            @for(var i=0;i<nclass.Count;i++){     
						<li class="@if(i==0){@Html.Raw("on");}">@nclass[i].title</li>
            }
					</ul>
				</div> 
        <div class="bd">       
            @for(var i=0;i<nclass.Count;i++){   
					<div class="inBox" style="float:left;width:1180px;">
						<div class="inHd">
							<ul>
                @{var nlist=func.GetList(7,nclass[i].ID);}
                @for(var j=0;j<nlist.Count;j++){
								<li>
									<a href="/article/@nlist[j].ID" title="@nlist[j].title">@nlist[j].title</a><span>@nlist[j].addtime.ToString("yyyy/MM/dd")</span></li>
                }
							</ul>
						</div>
						<div class="inBd">
							<ul>
                
                @{var nimglist=func.GetList(1,nclass[i].ID,img:1);}
                @for(var j=0;j<nimglist.Count;j++){
								<li>
									<div class="inBd_img"><a href="/article/@nimglist[j].ID" title="@nimglist[j].title"><img src="@nimglist[j].pic"></a></div>
									<p>@Html.Raw(nlist[j].body)</p>
									<a href="/article/@nimglist[j].ID" title="@nimglist[j].title" class="more2">查看详情</a>
								</li>
                }
							</ul>
						</div>
					</div>
            }
            </div>
				</div>
			</div>
		</div>
		</div>
		<div id="yqlj">
			<div class="box">
				<div class="tit">友情链接：</div>
				<div class="con">
          
                  		@{var link=func.GetLink();}
                    @for(var i=0;i<link.Count;i++){	
					<a href="@link[i].url" target="_blank">@link[i].title</a>
                    }
				</div>

			</div>
		</div>
		<div id="footer">
			<div class="box">@Html.Raw(ViewBag.model.copyright)</div>
		</div>
	<script type="text/javascript" src="@ViewBag.model.skin/js/foot.js"></script>
</body>
</html>
